<?php

namespace App\Http\Presenters;

use Laracasts\Presenter\Presenter;


class PlanPresenter extends Presenter
{

    public function categoryTitle()
    {
        switch ($this->type) {
            case 1:
                return '班级';
                break;
            case 2:
                return '课堂';
                break;
            case 3:
                return '课程';
                break;
            default:
                return '课堂';
                break;
        }
    }

    public function showtitle()
    {
        if ($this->status == 1)
            return '<span class="pink2"><b>' . $this->name . '</b></span>';

        return '<span class="smaller-90">' . $this->name . '</span>';

    }

}
